package com.sc.highspeed.service;

import com.sc.highspeed.db.dao.UrgInformationDao;
import com.sc.highspeed.db.model.UrgInformationModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Admin on 2017/12/4.
 */
@Service
public class UrgInformationService {

    @Autowired
    private UrgInformationDao urgInformationDao;

    public UrgInformationModel getUrgInformationById(int id) {
        return urgInformationDao.getUrgInformationById(id);
    }

    public List<UrgInformationModel> getUrgInformationList(int startRow, int pageSize) {
        return urgInformationDao.getUrgInformationList(startRow, pageSize);
    }

    public int insertUrgInformation(UrgInformationModel urgInformationModel) {
        return urgInformationDao.insertUrgInformation(urgInformationModel);
    }

    public int updateUrgInformationById(UrgInformationModel urgInformationModel) {
        return urgInformationDao.updateUrgInformationById(urgInformationModel);
    }

    public int deleteUrgInformationById(int id) {
        return urgInformationDao.deleteUrgInformationById(id);
    }

    public int updateUrgInformationStatus(String status, int id) {
        return urgInformationDao.updateUrgInformationStatus(status, id);
    }

    public int updateUrgInfomationRevocation(int id, String revocation, String revokeOrg, String revokeTime) {
        return urgInformationDao.updateUrgInfomationRevocation(id, revocation, revokeOrg, revokeTime);
    }

    public int getUrgInfoNumber() {
        return urgInformationDao.getUrgInfoNumber();
    }
}
